<template>
  <div>
    <div class="page-header col-xs-offset-2 col-xs-8">
      <h2>Vue路由测试</h2>
    </div>
    <!-- 导航区域 -->
    <div class="col-xs-2 col-xs-offset-2">
      <!-- 在原始HTML中我们使用a标签实现：不同页面的跳转 -->
      <!-- <a class="list-group-item" href="./about.html">About</a> -->
      <!-- <a class="list-group-item" href="./home.html">Home</a> -->

      <!-- 在Vue中我们要使用RouterLink，实现路径的切换，进而引起展示不同的组件 -->
      <RouterLink class="list-group-item" to="/about">About</RouterLink>
      <RouterLink class="list-group-item" to="/home">Home</RouterLink>
    </div>
    <!-- 展示区 -->
    <div class="col-xs-6 panel panel-body panel-primary">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
  export default {
    name: "App",
  };
</script>
